package explorer;

import java.awt.Graphics;

import javax.swing.JPanel;

public class ExplorerPanel extends JPanel {

	private static final long serialVersionUID=0;
	private Elements elements;
	
	public ExplorerPanel(Elements elements) {
		
		super();
		this.elements=elements;
	}
	
	public void update(Placer elements){
		
		this.repaint();
		
	}
	protected void paintComponent(Graphics graphics){
		
		super.paintComponent(graphics);
		elements.drawElements(graphics);
		
	}
	
}
